<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
	<style>
		.fade-transition{
			opacity: 1;
		}
	</style>
</head>
<body>
<!-- <script src="https://cdn.bootcss.com/vue/2.5.8/vue.js"></script> -->
<script src='http://cdn.jsdelivr.net/vue/1.0.26/vue.js'></script>
<div id="root">
	<p transition="fade">{{mes}}</p>
</div>
<script>
Vue.transition('fade', {
 css: false,
 enter: function (el, done) {
 // 元素已被插入 DOM
 // 在动画结束后调用 done
 	 console.log(el)
	 $(el)
	 .css('opacity', 0)
	 .animate({ opacity: 1 }, 1000, done)
 },
 enterCancelled: function (el) {
 	$(el).stop()
 },
 leave: function (el, done) {
 // 与 enter 相同
 	$(el).animate({ opacity: 0 }, 1000, done)
 },
 leaveCancelled: function (el) {
 	$(el).stop()
 }
})
var vm = new Vue({
	el : '#root',
	data : {
		mes : 'Hello Vue',
	}
})
</script>
</body>
</html>